package com.ruoyi.procurementmanagement.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 供应商退货对象 erp_supplier_return
 *
 * @author ruoyi
 * @date 2025-03-17
 */
public class ErpSupplierReturn extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 编号 */
    @Excel(name = "编号")
    private String sn;

    /** 部门id */
    @Excel(name = "部门id")
    private Long deptId;

    /** 入库单id */
    @Excel(name = "入库单id")
    private Long warehouseEntryId;

    /** 入库单编号 */
    @Excel(name = "入库单编号")
    private String warehouseEntrySn;

    /** 仓库id */
    @Excel(name = "仓库id")
    private Long warehouseId;

    /** 供应商id */
    @Excel(name = "供应商id")
    private Long supplierId;

    /** 供应商编号 */
    @Excel(name = "供应商编号")
    private String supplierSn;

    /** 部门名称 */
    @Excel(name = "部门名称")
    private String deptName;

    /** 仓库名称 */
    @Excel(name = "仓库名称")
    private String warehouseName;

    /** 供应商名称 */
    @Excel(name = "供应商名称")
    private String supplierName;

    /** 合同id */
    @Excel(name = "合同id")
    private Long contractId;

    /** 合同编号 */
    @Excel(name = "合同编号")
    private String contractSn;

    /** 经手人id */
    @Excel(name = "经手人id")
    private Long handleById;

    /** 经手人名称 */
    @Excel(name = "经手人名称")
    private String handleByName;

    /** 附件 */
    @Excel(name = "附件")
    private String attachment;

    /** 退货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "退货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date returnTime;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 审核人 */
    @Excel(name = "审核人")
    private String auditBy;

    /** 审核备注 */
    @Excel(name = "审核备注")
    private String auditRemark;

    /** 创建者 */
    @Excel(name = "创建者")
    private String creator;

    /** 更新者 */
    @Excel(name = "更新者")
    private String updater;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setSn(String sn)
    {
        this.sn = sn;
    }

    public String getSn()
    {
        return sn;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }
    public void setWarehouseEntryId(Long warehouseEntryId)
    {
        this.warehouseEntryId = warehouseEntryId;
    }

    public Long getWarehouseEntryId()
    {
        return warehouseEntryId;
    }
    public void setWarehouseEntrySn(String warehouseEntrySn)
    {
        this.warehouseEntrySn = warehouseEntrySn;
    }

    public String getWarehouseEntrySn()
    {
        return warehouseEntrySn;
    }
    public void setWarehouseId(Long warehouseId)
    {
        this.warehouseId = warehouseId;
    }

    public Long getWarehouseId()
    {
        return warehouseId;
    }
    public void setSupplierId(Long supplierId)
    {
        this.supplierId = supplierId;
    }

    public Long getSupplierId()
    {
        return supplierId;
    }
    public void setSupplierSn(String supplierSn)
    {
        this.supplierSn = supplierSn;
    }

    public String getSupplierSn()
    {
        return supplierSn;
    }
    public void setDeptName(String deptName)
    {
        this.deptName = deptName;
    }

    public String getDeptName()
    {
        return deptName;
    }
    public void setWarehouseName(String warehouseName)
    {
        this.warehouseName = warehouseName;
    }

    public String getWarehouseName()
    {
        return warehouseName;
    }
    public void setSupplierName(String supplierName)
    {
        this.supplierName = supplierName;
    }

    public String getSupplierName()
    {
        return supplierName;
    }
    public void setContractId(Long contractId)
    {
        this.contractId = contractId;
    }

    public Long getContractId()
    {
        return contractId;
    }
    public void setContractSn(String contractSn)
    {
        this.contractSn = contractSn;
    }

    public String getContractSn()
    {
        return contractSn;
    }
    public void setHandleById(Long handleById)
    {
        this.handleById = handleById;
    }

    public Long getHandleById()
    {
        return handleById;
    }
    public void setHandleByName(String handleByName)
    {
        this.handleByName = handleByName;
    }

    public String getHandleByName()
    {
        return handleByName;
    }
    public void setAttachment(String attachment)
    {
        this.attachment = attachment;
    }

    public String getAttachment()
    {
        return attachment;
    }
    public void setReturnTime(Date returnTime)
    {
        this.returnTime = returnTime;
    }

    public Date getReturnTime()
    {
        return returnTime;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setAuditBy(String auditBy)
    {
        this.auditBy = auditBy;
    }

    public String getAuditBy()
    {
        return auditBy;
    }
    public void setAuditRemark(String auditRemark)
    {
        this.auditRemark = auditRemark;
    }

    public String getAuditRemark()
    {
        return auditRemark;
    }
    public void setCreator(String creator)
    {
        this.creator = creator;
    }

    public String getCreator()
    {
        return creator;
    }
    public void setUpdater(String updater)
    {
        this.updater = updater;
    }

    public String getUpdater()
    {
        return updater;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sn", getSn())
            .append("deptId", getDeptId())
            .append("warehouseEntryId", getWarehouseEntryId())
            .append("warehouseEntrySn", getWarehouseEntrySn())
            .append("warehouseId", getWarehouseId())
            .append("supplierId", getSupplierId())
            .append("supplierSn", getSupplierSn())
            .append("deptName", getDeptName())
            .append("warehouseName", getWarehouseName())
            .append("supplierName", getSupplierName())
            .append("contractId", getContractId())
            .append("contractSn", getContractSn())
            .append("handleById", getHandleById())
            .append("handleByName", getHandleByName())
            .append("attachment", getAttachment())
            .append("returnTime", getReturnTime())
            .append("status", getStatus())
            .append("auditBy", getAuditBy())
            .append("auditRemark", getAuditRemark())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("creator", getCreator())
            .append("updater", getUpdater())
            .toString();
    }
}
